package com.cy.ppj.dao.mapper.customer;

import com.cy.ppj.model.domian.customer.CustomerIdCardAuthRecord;
import com.cy.ppj.model.query.customer.CustomerAuthRecordQuery;
import com.cy.ppj.model.vo.customer.CustomerAuthDetailVO;
import com.cy.ppj.model.vo.customer.CustomerAuthRecordVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.BaseMapper;

import java.util.List;

/**
 * @Description 客户身份证认证状态 CustomerIdCardAuthRecordMapper
 * @Author tanyilin
 * @Date 2019/6/17 15:23
 */
@Mapper
public interface CustomerIdCardAuthRecordMapper extends BaseMapper<CustomerIdCardAuthRecord> {

    /**
     * 查询客户认证信息详情
     * @param customerId
     * @return com.cy.ppj.model.vo.customer.CustomerAuthDetailVO
     */
    CustomerAuthDetailVO selectCustomerAuthDetail(@Param("customerId") Long customerId);

    /**
     * 查询客户实名认证记录列表
     * @param query
     * @return int
     */
    int selectCustomerAuthRecordCount(CustomerAuthRecordQuery query);

    List<CustomerAuthRecordVO> selectCustomerAuthRecord(CustomerAuthRecordQuery query);
}
